import React, { Component } from 'react'
import Common from './Common'
import Registe from './Registe'
import Login from './Login'
export default class App extends Component {
  render() {
    return (
      <div>
        {/* <Common
          render={(state, handle) => {
            return <Login {...state} handle={handle}></Login>
          }}
        ></Common>
        <Common
          render={(state, handle) => (
            <Registe {...state} handle={handle}></Registe>
          )}
        ></Common> */}
        <Common>
          {(state, handle) => <Login {...state} handle={handle}></Login>}
        </Common>
        <Common>
          {(state, handle) => <Registe {...state} handle={handle}></Registe>}
        </Common>
      </div>
    )
  }
}
